關於 Onedrive Api 的申請流程
date
Dec 2, 2024
Last edited time
Dec 2, 2024 04:21 AM
status
Published
slug
關於 Onedrive Api 的申請流程
tags
C#
summary
type
Post
origin
Field
Plat
申請
- 打開
- 点击新注册

- 填寫注冊信息, URL填寫 http://127.0.0.1:8400

- 点击API权限

- 请求获取API权限

- 委托权限勾选

勾选下面6个权限
Files.Read
Files.ReadWrite
Files.Read.All
Files.ReadWrite.All
offline_access
User.Read
- 创建客户端密码

- 得到 App ID 以及 ecrect ID


使用
OneDriveAPI
KoenZomers • Updated Sep 30, 2024
- 獲取授權 URL
- 通過 URL 得到 Refresh Token
- 通過 Refresh Token 更新 Access Token
- 可以使用了